<%-- 
    Document   : friendSearchResult
    Created on : May 28, 2011, 3:34:34 PM
    Author     : Kevin
--%>

<%@page contentType="text/html" import="com.movie.*" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="headerv.html"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>FriendResult</h1><br><br>
        <% List<Viewer> resultList = (List< Viewer>)request.getAttribute("resultList") ;%>
        <% for(int i=0;i<resultList.size();i++) {
            Viewer v = resultList.get(i);%>
            <a href="dispatcher?operation=friendinfo&id=<%=v.getIdviewer()%>"> <%=v.getFirstname()%> &nbsp; <%=v.getLastname()%> </a> 
        <%}%>
        
    </body>
</html>
<%@include file="footer.html"%>